﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RedDragon.Common.Domain.AuthorizeRBAC
{
    /// <summary>
    /// 用户角色
    /// </summary>
    [SugarTable("UserRoles")]
    public class UserRoles
    {
        /// <summary>
        /// 用户角色id
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]//IsPrimaryKey 主键 IsIdentity 自增
        public int UserRoleId { get; set; }
        /// <summary>
        /// 用户id
        /// </summary>
        public int UserId { get; set; }
        /// <summary>
        /// 角色ID
        /// </summary>
        public int RolesId { get; set; }
    }
}
